<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<c:forEach items="${requestScope.attachments}" var="attachment">
    <p class="attachment">
       <a href="${pageContext.request.contextPath}/file/download.do?attachmentID=${attachment.attachmentID}">
           <img class="imgPanelAttachment" src="${pageContext.request.contextPath}/common/loadimg.do?mimeType=${attachment.fileContentType}" alt="Download ${attachment.fileName}" title="Download ${attachment.fileName}" />
       </a>
    </p>
</c:forEach>